package com.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 钱包账户表
 * @TableName account
 */
@TableName(value ="account")
@Data
public class Account implements Serializable {
    /**
     * 账户id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 账户号
     */
    private String accountNumber;

    /**
     * 绑定银行卡号
     */
    private String bankNumber;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 版本号
     */
    private Integer version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}